package org.azmat.student.SQL.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("student")
@Schema(description = "学生信息")
public class Student {
    @Schema(description = "学生ID")
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @Schema(description = "学生姓名")
    @TableField("studentname")
    private String studentName;

    @Schema(description = "学生性别")
    @TableField("gender")
    private String gender;

    @Schema(description = "学生年龄")
    @TableField("age")
    private int age;

    @Schema(description = "学生地址")
    @TableField("address")
    private String address;

}
